import Vue from 'vue'
import VueParticles from 'vue-particles'
//引入vant
import Vant from 'vant'
import 'vant/lib/index.css'
Vue.use(Vant)
// 引入封装的Http
import HomeHttp from '../../hot_movie/src/models/HomeHttp'
import DetailHttp from '../../hot_movie/src/models/DetailHttp'
import CityHttp from '../../hot_movie/src/models/CityHttp'

import axios from 'axios'
import VueAxios from 'vue-axios'

import App from './App.vue'
import router from './router'
import store from './store'
// 引入elementUI
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
//在Vue的原型对象上面挂载了一个$HomeHttp的东西就是我们封装好的api
Vue.prototype.$HomeHttp = HomeHttp
Vue.prototype.$DetailHttp = DetailHttp
Vue.prototype.$CityHttp = CityHttp
Vue.use(ElementUI)
Vue.config.productionTip = false
Vue.use(VueAxios, axios)
Vue.use(VueParticles)
// Vue.$http.get('http://localhost:3001/comment').then((res) => {
//   console.log(res)
// })
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
